export const newBirthdayToStuStatus = (data) => {
  const date =new Date(data.fd_birthday )
  const year = date.getFullYear();
  const month = ("0" + (date.getMonth() + 1)).slice(-2);
  const day = ("0" + date.getDate()).slice(-2);
  const formattedDate = `${year}-${month}-${day}`;
  data["fd_birthday"] = formattedDate
  return data
}

export const handleTime =(time) =>{
  const date =new Date(time )
  const year = date.getFullYear();
  const month = ("0" + (date.getMonth() + 1)).slice(-2);
  const day = ("0" + date.getDate()).slice(-2);
  const formattedDate = `${year}-${month}-${day}`;
  return formattedDate
}